package beans.interfaces;

import java.util.ArrayList;

import javax.ejb.Local;
import javax.xml.namespace.QName;

import model.Host;
import model.User;
import exceptions.UsernameExistsException;

@Local
public interface ChatDataLocal {
	public void init();
	public User register(String username, String password) throws UsernameExistsException;
	public boolean login(User login);
	public boolean logout(User user);
	public ArrayList<User> getAllUsers();
	public ArrayList<Host> getHosts();
	public Host getLocalHost();
	public String getHttpHeader();
	public String getWsdlLocation();
	public QName getServiceName();
	public User getUser(String username);
}
